#include "vector.hpp"
//#include "riterator.hpp"
void test1()
{
    cc::vector<int> v;
    v.push_back(1);
    cout<<v.capacity()<<endl;
    cout<<v.size()<<endl;
    v.push_back(2);
    cout<<v.capacity()<<endl;
    cout<<v.size()<<endl;
    v.push_back(3);
    cout<<v.capacity()<<endl;
    cout<<v.size()<<endl;
    v.push_back(4);
    cout<<v.capacity()<<endl;
    cout<<v.size()<<endl;
    v.push_back(6);
    cout<<v.capacity()<<endl;
    cout<<v.size()<<endl;
    for(auto e : v)
        cout<<e<<"->";
    cout<<endl;
    cc::vector<int> s(v.begin(),v.end());
    for(auto e : s)
        cout<<e<<"->";
    cout<<endl;
}
void test2()
{
    cc::vector<int> v;
    v.push_back(1);
    v.push_back(2);
    v.push_back(3);
    v.push_back(4);
    v.push_back(5);
    cc::vector<int> s=v;
    cc::vector<int> d;
    d=v;
    for(auto e : s)
        cout<<e<<"->";
    cout<<endl;
    for(auto e : d)
        cout<<e<<"->";
    cout<<endl;
}
void test3()
{
    cc::vector<cc::vector<int>> vv;
    cc::vector<int> v1;
    v1.push_back(1);
    v1.push_back(2);
    v1.push_back(3);
    v1.push_back(4);
    v1.push_back(5);
    cc::vector<int> v2;
    v2.push_back(6);
    v2.push_back(7);
    v2.push_back(8);
    v2.push_back(9);
    v2.push_back(10);
    cc::vector<int> v3;
    v3.push_back(11);
    v3.push_back(12);
    v3.push_back(13);
    v3.push_back(14);
    v3.push_back(15);
    vv.push_back(v1);
    vv.push_back(v2);
    vv.push_back(v3);
    for(auto& e : vv)
    {
        for(auto s : e)
            cout<<s<<" ";
        cout<<endl;
    }
    cout<<endl;
}
int main()
{
    //test1();
    //test2();
    test3();
    return 0;
}